package models

import (
	"go-server/models/base"
	"time"
)

type SysUser struct {
	UserId       int       `json:"userId" gorm:"primary_key"`
	Username     string    `json:"username"`
	Password     string    `json:"password"`
	Salt         string    `json:"salt"`
	Email        string    `json:"email"`
	Mobile       string    `json:"mobile"`
	Status       int       `json:"status"`
	CreateUserId int       `json:"createUserId"`
	CreateTime   time.Time `json:"createTime" gorm:"type:datetime;"`
}

type SysUserLoginDto struct {
	Username string ``
	Password string ``
}

type SysUserInfoDto struct {
	Id int `uri:"id"`
}

type SysUserListDto struct {
	base.Pages
	Id int `uri:"id"`
}

type SysUserDeleteDto struct {
	Id int `uri:"id"`
}
